package cdu.sl.mapper;


import cdu.sl.annotation.AutoFill;
import cdu.sl.common.enums.OperationType;
import cdu.sl.domain.po.CardStudyRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CardStudyRecordMapper extends BaseMapper<CardStudyRecord> {

    @AutoFill(OperationType.INSERT)
    @Override
    int insert(CardStudyRecord entity);

    @AutoFill(OperationType.UPDATE)
    @Override
    int updateById(@Param("et") CardStudyRecord entity);
}
